package com.ruoyi.crawler.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 爬虫记录对象 web_record
 * 
 * @author ruoyi
 * @date 2025-08-29
 */
public class WebRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long createId;

    /** 平台类型 */
    @Excel(name = "平台类型")
    private Long ptType;

    /** 图片URL */
    private String imgUrl;

    /** HTML内容 */
    private String html;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }

    public void setPtType(Long ptType) 
    {
        this.ptType = ptType;
    }

    public Long getPtType() 
    {
        return ptType;
    }

    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }

    public void setHtml(String html) 
    {
        this.html = html;
    }

    public String getHtml() 
    {
        return html;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("createId", getCreateId())
            .append("ptType", getPtType())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("imgUrl", getImgUrl())
            .append("html", getHtml())
            .toString();
    }
}
